package cn.hiapi.shopkeeper.jpa.user;

import cn.hiapi.basic.jpa.BasicRepository;
import cn.hiapi.shopkeeper.entity.user.SubscribeShop;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * @author AdinZ
 * @date 2022/12/31 22:26
 */
public interface SubscribeShopJpa extends BasicRepository<SubscribeShop,Long> {


    @Modifying
    @Query("delete from SubscribeShop  e where  e.uid=?1 and e.shopId=?2")
    Integer deleteByUid(long uid, long shopId);
}
